import request from '@/util/request'

export function listeningAndWriting(data) {
  return request({
    url: '/practice/listening-and-writing',
    method: 'post',
    data: data
  })
}

export function nextRaw(data) {
  return request({
    url: '/practice/listening-and-writing/next',
    method: 'post',
    data: data
  })
}

export function nextRow(data) {
  return request({
    url: '/practice/next-row',
    method: 'post',
    data: data
  })
}

export function choose(data) {
  return request({
    url: '/practice/choose',
    method: 'post',
    data: data
  })
}

export function nextChooseRaw(data) {
  return request({
    url: '/practice/choose/next',
    method: 'post',
    data: data
  })
}

export function reset(data) {
  return request({
    url: '/practice/reset',
    method: 'post',
    data: data
  })
}

export function setUserPracticeConfig(data) {
  return request({
    url: '/practice/config/set',
    method: 'post',
    data: data
  })
}

export function deleteUserPracticeConfig(data) {
  return request({
    url: '/practice/config/delete',
    method: 'post',
    data: data
  })
}

export function queryUserPracticeConfig(data) {
  return request({
    url: '/practice/config/query',
    method: 'post',
    data: data
  })
}